package net.sudot.chess.business.service;

import net.sudot.chess.business.dao.CategoryDao;
import net.sudot.chess.business.model.Category;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 游戏分类
 *
 * @author tangjialin on 2018-02-27.
 */
@Service
public class CategoryService extends BaseService<Category> {

    @Resource
    private CategoryDao categoryDao;

    /**
     * 获取游戏分类
     *
     * @return 返回分类信息
     */
    public List<Category> findAll() {
        return categoryDao.findAll();
    }
}
